package com.mes.system.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.context.annotation.Lazy;

import com.mes.basicdata.domain.Employee;
import com.mes.common.domain.BasicModel;

@Entity()
@Table(name = "S_OPERATIONAUTH")
@BatchSize(size = 20)
@Lazy(value = true)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class SysOperationAuth extends BasicModel implements java.io.Serializable {

	@Id
	@GenericGenerator(name = "uniqueId", strategy = "assigned")
	@Column(name = "AUTH_UID")
	private String uniqueId;

	/**
	 * 系统功能唯一号
	 */
	@Column(name = "OPERATION_ID")
	private String sysOperationUid;
	/**
	 * 人员编号
	 */
	@Column(name = "EMPLOYEEID")
	private String employeeUid;
	private Employee employee;
	
	// 黑白名单标志
	@Column(name = "BWFLAG")
	private String bwFlag;

	
	/** default constructor */
	public SysOperationAuth() {
		
	}
	
	public String getUniqueId() {
		return uniqueId;
	}
	public void setUniqueId(String uniqueId) {
		this.uniqueId = uniqueId;
	}

	public String getSysOperationUid() {
		return sysOperationUid;
	}
	public void setSysOperationUid(String sysOperationUid) {
		this.sysOperationUid = sysOperationUid;
	}

	public String getEmployeeUid() {
		return employeeUid;
	}
	public void setEmployeeUid(String employeeUid) {
		this.employeeUid = employeeUid;
	}

	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public String getBwFlag() {
		return bwFlag;
	}
	public void setBwFlag(String bwFlag) {
		this.bwFlag = bwFlag;
	}

}